package br.edu.ufcg.lsd.wbis.control.equipment;

import java.sql.Date;

import javax.persistence.Entity;

/**
 * 
 * @author Paulo Ricardo
 *
 */
@Entity
public class Processor extends Component {

	private String frequency;
	
	private String l2Cache;
	
	private int cores;

	@SuppressWarnings("unused")
	private Processor(){};
	
	/**
	 * 
	 * @param inventoryCode
	 * @param brand
	 * @param serialCode
	 * @param acquisitionDate
	 * @param model
	 * @param localization
	 * @param receipt
	 * @param reserve
	 * @param available
	 * @param coupled
	 * @param frequency
	 * @param l2Cache
	 * @param cores
	 */
	public Processor(String inventoryCode, String brand, String serialCode,
			Date acquisitionDate, String model, String localization,
			byte[] receipt, Computer computer, boolean available,
			String frequency, String l2Cache, int cores) {
		super(inventoryCode, brand, serialCode, acquisitionDate, model, localization,
				receipt, computer, false, available, Processor.class);
		this.frequency = frequency;
		this.l2Cache = l2Cache;
		this.cores = cores;
	}

	/**
	 * 
	 * @param frequency
	 */
	protected void setFrequency(String frequency) {
		this.frequency = frequency;
	}

	/**
	 * 
	 * @param cache
	 */
	protected void setL2Cache(String cache) {
		l2Cache = cache;
	}

	/**
	 * 
	 * @param cores
	 */
	protected void setCores(int cores) {
		this.cores = cores;
	}

	/**
	 * 
	 * @return
	 */
	public String getFrequency() {
		return frequency;
	}

	/**
	 * 
	 * @return
	 */
	public String getL2Cache() {
		return l2Cache;
	}

	/**
	 * 
	 * @return
	 */
	public int getCores() {
		return cores;
	}
	
	
	
}
